/**
 * Created by dllo on 18/3/29.
 */
public class Question04 {
    public static void main(String[] args) {


        for (int a = 0; a < 10; a++) {

            for (int b = 0; b < 10; b++) {

                for (int c = 0; c < 10; c++) {

                    if ((a * 100 + b * 10 + c) + (c * 100 + b * 10 + a) == 1333) {
                        System.out.println("a:" + a + "b:" + b + "c:" + c);
                    }
                }
            }
        }
    }
}
